{include file="require_header.html" addcss=yes editor=yes swfupload=yes}
<div class="contentTop"></div>
<div class="content">
<div>&nbsp;</div>
<form action="{spUrl c=add_s a=post}" id="form1" method="post">
  <div id="hearder_bg">

    <div id="main">
  
      <h2 id="title">发布图片</h2>
      <div id="pb-post-area">
      
      <div id="uploadArea">
           {if is_array($attach)}
             {foreach from=$attach item=d}
             {if $d.mime=='jpg' || $d.mime=='png' || $d.mime=='gif' ||  $d.mime=='bmp'}
            <div id="attach_{$d.id}">
                <img src="{$url}/{thubimg path=$d.path}" width="100" height="100" />
                <textarea name="localimg[{$d.id}]" onblur="">{$d.blogdesc}</textarea>
                <a href="javascript:void(0)" onclick="delAttachIMAGE('{$d.id}')" class="delete">remove</a>
            </div>
            {/if}
            {/foreach}
           {/if}

      </div>
      
      <div id="listArea" bid="{$tempid}"  ssid="{session_id()}">
      <div id="controlBtns" style="display:none;"><a href="javascript:void(0);" id="btnClear" onclick="removeFile();" class="btn" style="display:none;"><span><img src="{$url}/tpl/image/add/clear.gif" /> 删除文件</span></a> <a href="javascript:void(0);" id="btnStart" onclick="startUploadFiles();" class="btn"><span>开始上传</span></a></div>

			<table width="100%" border="0" cellpadding="0" cellspacing="0">
				<tbody id="listBody">
				</tbody>
			</table>
		</div>
     <div id="progressArea">
			<div id="progressBar"><span>0%</span><div id="progress" style="width:1px;"></div></div>
		</div>
        
      <div class="upimgBar">
            <div id="divAddFiles"><div id="fileButton"></div></div>
            <div id="upimgText">在文件列表中，您可以按住Shift多选。jpg,png,bmp.每张不超过{formatBytes size=$yb.addimg_upsize},最多发布{$yb.addimg_count}张</div>
            <div class="clear"></div>
        </div>
        
         
        
      
        
    
      
        <div>
          <h3 class="title"> 图组标题 </h3>
          <input type="text" name="pb-text-title" id="pb-text-title" class="input" tabindex="1" value="{$blog.title}">
        </div>
        

        
        <div>
          <h3 class="title">图组介绍<span>(选填)</span></h3>
          <textarea name="textarea" id="textarea" style="width:100%; height:180px">{$body.content}</textarea>
           </div>

 
 
      </div>
      <div id="pb-action-holder"> 
          <a id="submit_image" class="blue-button">发布</a> 
          <a id="preview" class="gray-button">预览</a> 
          <a id="cancel" class="gray-button">取消</a> 
       <span style="display:none;" id="pb-submiting-tip">正在执行中...</span>
      </div>
    </div>
    
 
    <div id="aside">
      <div class="aside-item" id="post-privacy-holder">
        <select id="post-privacy-select" name="post-privacy-select">
        <option value="1">所有人可见</option>
         <option value="0">保存为草稿</option>
        </select>
      </div>
      
      <hr class="separator">

      <div class="aside-item" id="post-tag-holder">
        <div id="post-tag">
          <ul class="clearfix" id="post-tag-list"><!--动态插入标签-->
          {foreach from=$myTag item=d}
          <li tag="{$d}">{$d}<a href="javascript:void(0)" onclick="remTags(this)">x</a></li>
        {/foreach}
          </ul>
          <div id="post-tag-input-holder">
            <input type="text" id="post-tag-input" class="pb-tag-tip" value="">
          </div>
        </div>
      </div>
      
      <hr class="separator">
      
      <div class="aside-item" id="recommand-tag-holder">
        <h4>常用标签</h4>
        <ul class="clearfix" id="recommand-tag-list">
        {foreach from=$myTagUsually item=d}
          <li tag="{$d.title}"><a href="javascript:void(0)" onclick="tuiTag('{$d.title}',this)">{$d.title}</a></li>
        {/foreach}
        </ul>
        <div class="clear"></div>
      </div>
      <hr class="separator">
      
      <div class="aside-item pb-side-opt" id="top-post-holder">
      
        <label>
         {if $blog.top ==1}
        <input type="checkbox" id="pb-top-post" name="pb-top-post" value="1" checked="checked">
        {else}
           <input type="checkbox" id="pb-top-post" name="pb-top-post" value="1">
        {/if}
        文章置顶
        </label>
        <p class="top-post-tip">多个置顶将按照时间排序</p>
      </div>
      
      <div class="aside-item pb-side-opt" id="top-post-holder">
        <label> 
        
         {if $blog.noreply ==1}
        <input type="checkbox" id="pb-nowrite-post" name="pb-nowrite-post" value="1" checked="checked">
        {else}
           <input type="checkbox" id="pb-nowrite-post" name="pb-nowrite-post" value="1">
        {/if}
        禁止评论
        </label>
        <p class="top-post-tip">本条内容不允许评论</p>
      </div>
       <hr class="separator">
      <!--
        <div class="aside-item pb-side-opt" id="top-post-holder">
         <label> <input name="pb-sync-to-qqweibo" type="checkbox" id="pb-sync-to-qqweibo" value="1">转发腾讯微薄</label>
      </div>
      
        <div class="aside-item pb-side-opt" id="top-post-holder">
         <label><input name="pb-sync-to-weibo" type="checkbox" id="pb-sync-to-weibo" value="1">转发新浪微薄</label>
      </div>
      -->
      <input type="hidden" name="blog-types" id="blog-types" value="3" />
      <input type="hidden" name="blog-open" id="blog-open" value="1" />
      <input type="hidden" name="blog-tags" id="blog-tags" value="" />
      <input type="hidden" name="blog-attach" id="blog-attach" value="{$body.attr}"/>
      <input type="hidden" name="uploadcount" id="uploadcount" value="{$yb.addimg_count}" />
      <input type="hidden" name="uploadcount" id="uploadmaxsize" value="{formatBytes size=$yb.addimg_upsize}" />
      
      <input type="hidden" name="id" value="{$blog.bid}" />
   
      
    </div>
    <div class="clear"></div>
  </div>
</form>
</div>

{include file="require_footer.html"}
